package com.icinfo.cloud.provider.punish.api.client.config;

import com.icinfo.cloud.provider.punish.config.model.ConfigBusiParamDocumentInfo;
import com.icinfo.framework.common.web.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 描述：业务关联文书配置客户端接口
 *
 * @author xiangyuyu
 * @date 2022/6/27 20:12
 */
@FeignClient(value = "${unified-punish-case-provider.namespace:}unified-punish-case-provider", contextId = "ConfigBusiParamDocumentInfoClient")
public interface ConfigBusiParamDocumentInfoClient {

    /**
     * 【V1.0.0】描述：根据文书目录获取详情
     *
     * @param documentCatalogCode
     * @return {@link Result< String>}
     * @author liyafeng
     * @date 2022/2/25
     */
    @PostMapping("/config/busiParamDocumentInfo/getDetailByDocumentCatalogCode/{documentCatalogCode}")
    Result<ConfigBusiParamDocumentInfo> getDetailByDocumentCatalogCode(@PathVariable("documentCatalogCode") String documentCatalogCode);
}
